<template>
<div>
  <TypeNav></TypeNav>
  <ListContainer></ListContainer>
  <Recommend></Recommend>
  <Rank></Rank>
  <Like></Like>
  <Floor v-for="floor in floorList" :key="floor.id" :floor="floor"></Floor>

  <Brand></Brand>

</div>
</template>

<script>
import ListContainer from "@/pages/Home/ListContainer/ListContainer";
import Recommend from "@/pages/Home/Recommend/Recommend";
import Rank from "@/pages/Home/Rank/Rank";
import Like from "@/pages/Home/Like/Like";
import Floor from "@/pages/Home/Floor/Floor";
import Brand from "@/pages/Home/Brand/Brand";
import {mapState} from 'vuex';
export default {
  name: "Home",
  components: {
    Brand,
    Floor,
    Like,
    Rank,
    Recommend,
    ListContainer
  },
  computed:{
    ...mapState({
      floorList: state => state.home.floorList,
    }),
  },
  mounted() {
    this.$store.dispatch('getFloorList');
  }
}
</script>

<style scoped>

</style>
